package org.database.config;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

import java.util.Date;

/**
 * 任务  配置model
 *
 * @author huyj
 * @Created 2017-03-23 16:34
 */
@Root
public class NcTask {
    /** 任务名称 */
    @Element(required = true)
    private String taskName;
    /** 任务名称 */
    @Element(required = true)
    private String taskAliasName;
    /** 任务分组 */
    @Element(required = true)
    private String taskGroup;
    /** 任务状态 0禁用 1启用 2删除 */
    @Element(required = false)
    private String taskStatus;
    /** 任务运行时间表达式 */
    @Element(required = true)
    private String taskCron;
    /** 最后一次执行时间 */
    @Element(required = false)
    private Date previousFireTime;
    /** 下次执行时间 */
    @Element(required = false)
    private Date nextFireTime;
    /** 任务描述 */
    @Element(required = true)
    private String taskDesc;
    // 任务类型(是否阻塞)
    @Element(required = false)
    private String jobType;
    // 本地任务/dubbo任务
    @Element(required = true)
    private String taskType;
    // 运行系统(dubbo任务必须)
    @Element(required = false)
    private String targetSystem;
    // 任务对象
    @Element(required = true)
    private String targetObject;
    // 任务方法
    @Element(required = false)
    private String targetMethod;
    // jobClass
    @Element(required = false)
    private String jobClass;

    //数据处理信息
    @Element(required = true)
    private Object taskData;

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskAliasName() {
        return taskAliasName;
    }

    public void setTaskAliasName(String taskAliasName) {
        this.taskAliasName = taskAliasName;
    }

    public String getTaskGroup() {
        return taskGroup;
    }

    public void setTaskGroup(String taskGroup) {
        this.taskGroup = taskGroup;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public String getTaskCron() {
        return taskCron;
    }

    public void setTaskCron(String taskCron) {
        this.taskCron = taskCron;
    }

    public Date getPreviousFireTime() {
        return previousFireTime;
    }

    public void setPreviousFireTime(Date previousFireTime) {
        this.previousFireTime = previousFireTime;
    }

    public Date getNextFireTime() {
        return nextFireTime;
    }

    public void setNextFireTime(Date nextFireTime) {
        this.nextFireTime = nextFireTime;
    }

    public String getTaskDesc() {
        return taskDesc;
    }

    public void setTaskDesc(String taskDesc) {
        this.taskDesc = taskDesc;
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public String getTargetSystem() {
        return targetSystem;
    }

    public void setTargetSystem(String targetSystem) {
        this.targetSystem = targetSystem;
    }

    public String getTargetObject() {
        return targetObject;
    }

    public void setTargetObject(String targetObject) {
        this.targetObject = targetObject;
    }

    public String getTargetMethod() {
        return targetMethod;
    }

    public void setTargetMethod(String targetMethod) {
        this.targetMethod = targetMethod;
    }

    public String getJobClass() {
        return jobClass;
    }

    public void setJobClass(String jobClass) {
        this.jobClass = jobClass;
    }

    public Object getTaskData() {
        return taskData;
    }

    public void setTaskData(Object taskData) {
        this.taskData = taskData;
    }
}
